// --------- for the 0.2 sec system tick --------- 
#ifndef ___INTERRUPT
	#define ___INTERRUPT 4
	#define CAL_FACTOR 50
	extern unsigned int getSec(void);
	extern void resetTime(void);
	extern unsigned int getgSec(void);
	extern unsigned char stop_me;
	extern void resetgTime(void);
	extern void EnableTime(void); // if param !=0 time work 
	extern void DisableTime(void); // if param !=0 time work 

//	#define NOIDU 2
// timer0  input CLK prescaller 1:4 => 1ms interrupt
#define InitTMR0()  OPTION= 0b00000001; INTE=0;RBIE=0;TMR0IF=0;TMR0IE=1
#define UpdateTMR0() TMR0IF=0 ;TMR0+=5

	typedef struct sTime
	{
		unsigned char seconds;
		unsigned char minutes;
		unsigned char hours;
	};

	extern bit flag_itu_start;
	#define StartITUComm() flag_itu_start=1
	#define StopITUComm() flag_itu_start=0
#endif	
